<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Simpla Admin</title>

<include file="Admin:Resources" />

</head>
<body>
	<div id="body-wrapper"> 
		<div id="main-content"> 
			<div class="content-box">
				
				<div class="content-box-header CM_header">
					
					<h3>角色列表</h3>
					
					<ul id="my_tab">
						<li><a  href="__APP__/Admin/add_role" >添加角色</a></li>
					</ul>
					<div class="clear"></div>
				</div> 
				
				
				<div class="content-box-content CM_boxList">
					
					<div class="tab-content default-tab" id="tab1">
						<table>
							
							<thead>
								<tr>
								   <th><input class="check-all" type="checkbox" /></th>
								   <th>ID</th>
								   <th>角色名称</th>
								   <th>状态</th>
								   <th>操作</th>
								</tr>
								
							</thead>
							<tbody>
							<foreach name="roleList" item="row" key="key">
								<tr>
									<td><input class="check-all" type="checkbox" value="{$row.id}" /></td>
									<td>{$row.id}</td>
									<td>{$row.name}</td>
									
									<td><?php echo $row['status']==1?'启用':'禁用' ?></td>
									<td>
										<a href="__APP__/Admin/editor_role/id/{$row.id}">编辑</a>&nbsp;|
										<a href="__APP__/Admin/access/id/{$row.id}">配置权限</a>&nbsp;|
										<a href="__APP__/Admin/role_del/id/{$row.id}">删除</a>
									</td>
								</tr>
							</foreach>
							</tbody>
							
							<tfoot>
								<tr>
									<td colspan="10">
										<div class="bulk-actions align-left">
											<select name="dropdown">
												<option value="option1">Choose an action...</option>
												<option value="option2">Edit</option>
												<option value="option3">Delete</option>
											</select>
											
											<a class="button CM_selectBtn" href="#">Apply to selected</a>
										</div>
										
										<div class="pagination CM_pagination">{$page}</div>
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
							
						</table>
						
					</div> 
				</div> 
				
			</div>

			<div class="clear"></div>
		</div> 

	</div>
	
</body>
</html>
